
#ifndef	__BOQUE_TRASIO_HANDLER_HPP_2010__
#define	__BOQUE_TRASIO_HANDLER_HPP_2010__

#include <string>


namespace	boque {
namespace	trasio	{

class	Handler
{

public	:
	
	/**
	 *
	 * @return 1 success with response returned
	 *         0 success without response 
	 *         <0 failure
	 *
	 * @exception on failure
	 */
	virtual int	handle( const std::string& data ) = 0;

public	:
	virtual ~Handler() {}

};	//// class Handler


}	// namespace trasio
}	// namespace boque


// type of class factories
typedef	boque::trasio::Handler*	create_t( const char* p1, const char* p2 );
typedef	void		destroy_t( boque::trasio::Handler* );


#endif	// __BOQUE_TRASIO_HANDLER_HPP_2010__

